package com.blq.common.utils;

import lombok.SneakyThrows;

import java.util.HashMap;
import java.util.Map;

/**
 * 模板工具类
 *
 * @Author: Blq <br>
 */
public class SendTemplentMessageUtils {

    /**
     * @title getAccessToken
     * @description 获取微信Token
     * @author Blq
     * @updateTime 2022/7/6 11:04
     * @throws
     */
    @SneakyThrows
    public static String getAccessToken (String url) {
        Map<String,String> map = new HashMap<>();
        map.put("grant_type","client_credential");
        map.put("appid","wx382c86581444a543");
        map.put("secret","fc3848b9bc057520d1417c3733a2fa9a");
        String resout = HttpClientUtil.doGet(url, map);
        System.out.println(resout);
        return resout;
    }
}
